package com.yungee.flow;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import com.yungee.flow.context.OrderContext;
import lombok.extern.slf4j.Slf4j;

@LiteflowComponent("ecmp")
@Slf4j
public class ECmp extends NodeComponent {

	@Override
	public void process() {
		OrderContext orderContext = this.getContextBean(OrderContext.class);
		orderContext.setE("e");
		log.info("ECmp executed");
		//do your business
	}
	@Override
	public boolean isAccess() {
		return super.isAccess();
	}

	@Override
	public boolean isContinueOnError() {
		return super.isContinueOnError();
	}

	@Override
	public boolean isEnd() {
		return super.isEnd();
	}

	@Override
	public boolean isRollback() {
		return super.isRollback();
	}

	@Override
	public void beforeProcess() {
		super.beforeProcess();
	}

	@Override
	public void afterProcess() {
		super.afterProcess();
	}

	@Override
	public void onSuccess() throws Exception {
		super.onSuccess();
	}

	@Override
	public void onError(Exception e) throws Exception {
		super.onError(e);
	}
}